package com.thams.dao;

import org.springframework.dao.DataAccessException;

import com.thams.dao.base.DataBaseDao;
import com.thams.dao.i.ISalesOrderDao;
import com.thams.entity.SoSodetails;
import com.thams.entity.SoSomain;

public class SalesOrderDao extends DataBaseDao implements ISalesOrderDao {

	@Override
	public void insertSoSodetails(SoSodetails soSodetails)
			throws DataAccessException {
		getConn().insert("USERTABLE.insertSoSodetails",soSodetails);
	}

	@Override
	public void insertSoSomain(SoSomain soSoMain) throws DataAccessException {
		soSoMain.setId(getMaxFieldByTableName("SO_SOMain", "ID")+1);
		getConn().insert("USERTABLE.insertSoSoMain",soSoMain);
	}
	
}
